feat(webhook/sink): implement http request for reset action#920
feat(webhook/sink): implement http request for reset action#920paulobressan wants to merge 2 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe webhook sink's Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/sinks/webhook.rs`:
- Around line 68-72: ChainEvent::Reset currently sends a bodyless POST (in the
ChainEvent::Reset arm where self.client.post(&stage.config.url) is called), so
include a JSON body that serializes the reset point to match the existing reset
shape defined in framework (use the same struct/fields from the reset shape in
src/framework/mod.rs), set the appropriate Content-Type header, and send that
JSON as the request body along with the existing headers (use the same point
value as point_header in the body). Locate the ChainEvent::Reset match arm and
replace the bodyless request with one that serializes the reset payload (the
same type/field names used in the framework reset shape) and calls .json(...) or
equivalent before sending.
Close #919
Summary by CodeRabbit